package com.victualler.core.gen.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.victualler.core.base.dao.BaseDetailDao;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

@Entity
@Table(name="comm_entityField")
@JsonIgnoreProperties(value = { "hibernateLazyInitializer", "handler" })
public class EntityFieldDao extends BaseDetailDao implements Serializable{
	//字段名称
	@Column(length = 100,nullable = false)
	private String fieldName; 
	//字段类型
	@Column(length = 100,nullable = false)
	private String fieldType; 
	//字段长度
	@Column(nullable = false)
	private Integer size ;
	//数据库字段名称
	@Column(length = 100,nullable = false)
	private String mapDBFieldName;
	//数据库类型
	@Column(length = 25,nullable = false)
	private String mapDBFieldType;
	//是否必选
	@Column(nullable = false)
	private Boolean notNull;

	public String getFieldName() {
		return fieldName;
	}

	public void setFieldName(String fieldName) {
		this.fieldName = fieldName;
	}

	public String getFieldType() {
		return fieldType;
	}

	public void setFieldType(String fieldType) {
		this.fieldType = fieldType;
	}

	public Integer getSize() {
		return size;
	}

	public void setSize(Integer size) {
		this.size = size;
	}

	public String getMapDBFieldName() {
		return mapDBFieldName;
	}

	public void setMapDBFieldName(String mapDBFieldName) {
		this.mapDBFieldName = mapDBFieldName;
	}

	public String getMapDBFieldType() {
		return mapDBFieldType;
	}

	public void setMapDBFieldType(String mapDBFieldType) {
		this.mapDBFieldType = mapDBFieldType;
	}

	public Boolean getNotNull() {
		return notNull;
	}

	public void setNotNull(Boolean notNull) {
		this.notNull = notNull;
	}
}
